import { BaseWindow } from "../../../component/window/BaseWindow";
import { ResouceConst } from "../../../component/gconst/ResouceConst";
import { ImagesConst } from "../../resource/ImagesConst";
import { NpcDialog } from "./npc/NpcDialog";
import { ScaleBitmap } from "../../../../com/mui/display/ScaleBitmap";
//class DialogWindowBig
    
    export  class DialogWindowBig extends BaseWindow
    {
        constructor()
        {
            super();
            setSize(345, 423);
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            this._windowCenterB = ResouceConst.getScaleBitmap(ImagesConst.WindowCenterB);
            addChild(this._windowCenterB);
            this._npcDialog = new NpcDialog();
            this._npcDialog.x = 30;
            this._npcDialog.y = 50;
            addChild(this._npcDialog);
            return;
        }

        protected /* override */ updateSize(): void
        {
            super.updateSize();
            this._npcDialog.x = 30;
            this._npcDialog.y = 50;
            this._npcDialog.width = width - 70;
            _windowCenter.setSize(this.width - 22, this.height - titleHeight + 9);
            _windowCenter.x = 11;
            _windowCenter.y = 33;
            this._windowCenterB.setSize(_windowCenter.width - 8, _windowCenter.height - 8);
            this._windowCenterB.x = _windowCenter.x + 4;
            this._windowCenterB.y = _windowCenter.y + 4;
            return;
        }

        protected /* var */_windowCenterB: ScaleBitmap;

        protected /* var */_npcDialog: NpcDialog;
    }
